package bean;
public class User{
private int id;
private int role;
private String userName;
private String password;
private String userImg;
private String sex;
private String telephone;
private String payPwd;
private int points;
private String question1;
private String answer1;
private String question2;
private String answer2;
private String createTime;
private String email;
private String birthday;
private int state;
private receiverMsg rinfo; 


public receiverMsg getRinfo() {
	return rinfo;
}
public void setRinfo(receiverMsg rinfo) {
	this.rinfo = rinfo;
}
public int getState() {
	return state;
}
public void setState(int state) {
	this.state = state;
}
public int getUserid() {
	return id;
}
public void setUserid(int userid) {
	this.id = userid;
}
public int getRole() {
	return role;
}
public void setRole(int role) {
	this.role = role;
}
public String getUserName() {
	return userName;
}
public void setUserName(String userName) {
	this.userName = userName;
}
public String getPassword() {
	return password;
}
public void setPassword(String password) {
	this.password = password;
}
public String getUserImg() {
	return userImg;
}
public void setUserImg(String userImg) {
	this.userImg = userImg;
}
public String getSex() {
	return sex;
}
public void setSex(String sex) {
	this.sex = sex;
}
public String getTelephone() {
	return telephone;
}
public void setTelephone(String telephone) {
	this.telephone = telephone;
}
public String getPayPwd() {
	return payPwd;
}
public void setPayPwd(String payPwd) {
	this.payPwd = payPwd;
}
public int getPoints() {
	return points;
}
public void setPoints(int points) {
	this.points = points;
}
public String getQuestion1() {
	return question1;
}
public void setQuestion1(String question1) {
	this.question1 = question1;
}
public String getAnswer1() {
	return answer1;
}
public void setAnswer1(String answer1) {
	this.answer1 = answer1;
}
public String getQuestion2() {
	return question2;
}
public void setQuestion2(String question2) {
	this.question2 = question2;
}
public String getAnswer2() {
	return answer2;
}
public void setAnswer2(String answer2) {
	this.answer2 = answer2;
}
public String getCreateTime() {
	return createTime;
}
public void setCreateTime(String createTime) {
	this.createTime = createTime;
}
public String getEmail() {
	return email;
}
public void setEmail(String email) {
	this.email = email;
}
public String getBirthday() {
	return birthday;
}
public void setBirthday(String birthday) {
	this.birthday = birthday;
}


@Override
public String toString() {
	return "User [id=" + id + ", role=" + role + ", userName=" + userName + ", password=" + password + ", userImg="
			+ userImg + ", sex=" + sex + ", telephone=" + telephone + ", payPwd=" + payPwd + ", points=" + points
			+ ", question1=" + question1 + ", answer1=" + answer1 + ", question2=" + question2 + ", answer2=" + answer2
			+ ", createTime=" + createTime + ", email=" + email + ", birthday=" + birthday + ", state=" + state
			+ ", rinfo=" + rinfo + "]";
}

public User(int id, int role, String userName, String password, String userImg, String sex, String telephone,
		String payPwd, int points, String question1, String answer1, String question2, String answer2,
		String createTime, String email, String birthday, int state, receiverMsg rinfo) {
	super();
	this.id = id;
	this.role = role;
	this.userName = userName;
	this.password = password;
	this.userImg = userImg;
	this.sex = sex;
	this.telephone = telephone;
	this.payPwd = payPwd;
	this.points = points;
	this.question1 = question1;
	this.answer1 = answer1;
	this.question2 = question2;
	this.answer2 = answer2;
	this.createTime = createTime;
	this.email = email;
	this.birthday = birthday;
	this.state = state;
	this.rinfo = rinfo;
}
public User(int userid, int role, String userName, String password, String userImg, String sex, String telephone,
		String payPwd, int points,  String answer1,  String answer2,String createTime, String email, String birthday) {
	super();
	this.id = userid;
	this.role = role;
	this.userName = userName;
	this.password = password;
	this.userImg = userImg;
	this.sex = sex;
	this.telephone = telephone;
	this.payPwd = payPwd;
	this.points = points;
	
	this.answer1 = answer1;
	
	this.answer2 = answer2;
	this.createTime = createTime;
	this.email = email;
	this.birthday = birthday;
}


public User(int role, String userName, String password, String userImg, String sex, String telephone, String payPwd,
		int points, String question1, String answer1, String question2, String answer2, String createTime, String email,
		String birthday) {
	super();
	this.role = role;
	this.userName = userName;
	this.password = password;
	this.userImg = userImg;
	this.sex = sex;
	this.telephone = telephone;
	this.payPwd = payPwd;
	this.points = points;
	this.question1 = question1;
	this.answer1 = answer1;
	this.question2 = question2;
	this.answer2 = answer2;
	this.createTime = createTime;
	this.email = email;
	this.birthday = birthday;
}

public User(int role, String userName, String password,String telephone,
	 String question1, String answer1, String question2, String answer2, String createTime, String email,int state) {
	super();
	this.role = role;
	this.userName = userName;
	this.password = password;
	this.telephone = telephone;
	this.question1 = question1;
	this.answer1 = answer1;
	this.question2 = question2;
	this.answer2 = answer2;
	this.createTime = createTime;
	this.email = email;
	this.state=state;
}
//role,userName,password,telephone,points,createTime,email,state

public User(int role, String userName, String password, String telephone, int points, String createTime, String email,
		int state) {
	super();
	this.role = role;
	this.userName = userName;
	this.password = password;
	this.telephone = telephone;
	this.points = points;
	this.createTime = createTime;
	this.email = email;
	this.state = state;
}


public User(int id, int role, String userName, String password, String telephone, String email) {
	super();
	this.id = id;
	this.role = role;
	this.userName = userName;
	this.password = password;
	this.telephone = telephone;
	this.email = email;
	
}
public User() {
	super();

}




}